package com.gitee.l0km.common.spring.core.annotation;

import java.lang.annotation.Annotation;

public abstract class BaseAnnotationFilter implements AnnotationFilter {

	public BaseAnnotationFilter() {
	}

	@Override
	public boolean matches(Annotation annotation) {
		return matches(annotation.annotationType());
	}

	@Override
	public boolean matches(Class<?> type) {
		return matches(type.getName());
	}

}
